Skip to content

CMake: allow private libraries to be used on older OSes #83602

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

edymtt
Copy link
Contributor

@edymtt edymtt commented Aug 7, 2025

This way they can be used in backdeployment tests.

To do so, use the deployment target versions for tests (not the one for the compiler/stdlib), and remove an unneeded dependency on StringProcessing.

Piggyback a change to disable an Autodiff test on backdeployment configurations

Addresses rdar://157622116

edymtt added 3 commits August 7, 2025 15:06
Since swiftlang#64187 we are not importing automatically StringProcessing when
building the stdlib -- this is especially important for StdlibUnittest,
since it needs to run on older OSes.

Addresses rdar://157622116
To do so, use the deployment target versions used for tests.

Addresses rdar://157622116
@edymtt edymtt marked this pull request as ready for review August 7, 2025 22:24
@edymtt edymtt requested review from asl and a team as code owners August 7, 2025 22:24
@edymtt
Copy link
Contributor Author

edymtt commented Aug 7, 2025

@swift-ci please test

@asl
Copy link
Contributor

asl commented Aug 7, 2025

I do not have access to rdar, so I'm out of context. But I'd suppose that autodiff test changes are ok.

@edymtt
Copy link
Contributor Author

edymtt commented Aug 7, 2025

@swift-ci please build toolchain

@edymtt
Copy link
Contributor Author

edymtt commented Aug 8, 2025

Windows toolchain failure looks unrelated, since it is happening in SourceKit-LSP tests

Test Suite 'Selected tests' started at 2025-08-08 03:27:07.296

Test Suite 'BackgroundIndexingTests' started at 2025-08-08 03:27:07.299

Test Case 'BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished' started at 2025-08-08 03:27:07.299

C:\Users\swift-ci\jenkins\workspace\swift-PR-build-toolchain-windows\sourcekit-lsp\Tests\SourceKitLSPTests\BackgroundIndexingTests.swift:2625: error: BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished : XCTAssertEqual failed: ("Optional(0)") is not equal to ("Optional(1)") - 

Test Case 'BackgroundIndexingTests.testEnsureSymbolsLoadedIntoIndexstoreDbWhenIndexingHasFinished' failed (262.566 seconds)

Test Suite 'BackgroundIndexingTests' failed at 2025-08-08 03:31:29.864

	 Executed 1 test, with 1 failure (0 unexpected) in 262.566 (262.566) seconds

Test Suite 'Selected tests' failed at 2025-08-08 03:31:29.864

	 Executed 1 test, with 1 failure (0 unexpected) in 262.566 (262.566) seconds

[org.swift.sourcekit-lsp:message-handling] debug 2025-08-08 03:27:07.5980 +0000

@edymtt
Copy link
Contributor Author

edymtt commented Aug 8, 2025

@swift-ci please build toolchain Windows

@edymtt edymtt merged commit 9d7d3a1 into swiftlang:main Aug 11, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants